from django.db.models import Manager

# This is stolen almost exactly from Django Basic Blog.
class PublicManager(Manager):
    """
    Returns Projects marked as public.
    """
    
    def public(self):
        return self.get_query_set().filter(public__exact=1)
